package gridsoft.sapi.contoller;

import com.yomahub.liteflow.core.FlowExecutor;
import com.yomahub.liteflow.flow.LiteflowResponse;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Get;
import org.noear.solon.annotation.Inject;
import org.noear.solon.annotation.Mapping;

@Controller
public class SLiteflow {

    @Inject
    private FlowExecutor flowExecutor;

    @Get
    @Mapping("/lf/**")
    public LiteflowResponse SQLRender() {
        LiteflowResponse response = flowExecutor.execute2Resp("chain1", "arg");
        return response;
    }
}
